import Vue from "vue";
import App from "./App";
import {
	router,
	RouterMount
} from "@/shopro/router";
import store from "@/shopro/store";
import uView from "uview-ui";
import shopro from "@/shopro";
import {Als} from "./utils/issdk.js"

async function bootstrap() {
	App.mpType = "app";
	//初始化issdk
	Vue.prototype.$isSDK =new Als({
		appid:'',//您的appid
		appCode:'51f3e6cb-8106-9215-5e94-7d15b47cd192'//您的appCode
		
	})
	//引入路由
	Vue.use(router);
	// 引入全局uView
	Vue.use(uView);
	// 加载shopro
	Vue.use(shopro);
	
	const app = new Vue({
		store,
		...App
	});
	// #ifdef H5
	RouterMount(app, router, "#app");
	// #endif
	// #ifndef H5
	app.$mount();
	// #endif
}

bootstrap();
